package com.yiyi.credit.manage.sso.common.utils;

import javax.servlet.http.Cookie;


public class CookieUtils {


    public static String getCookieByName(Cookie[] cookies, String cookieName) {

        if (cookies != null) {
            for (Cookie cookie : cookies) {
                if (cookieName.equals(cookie.getName())) {
                    return cookie.getValue();
                }
            }
        }
        return null;
    }
}
